Sunteți pe pagina 1din 48

Profile : http://community.spiceworks.com/profile/show/myprofile?

tab=shared

SPICEWORKS SPICEWORKS SPICEWORKS SPICEWORKS


TUTORIAL

20 juillet 2012
reated by : !le"andre#$
: http://community.spiceworks.com/profile/show/myprofile?tab=shared
SPICEWORKS SPICEWORKS SPICEWORKS SPICEWORKS
Summary
: http://community.spiceworks.com/profile/show/myprofile?tab=shared




1
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2



SPICEWORKS SPICEWORKS SPICEWORKS SPICEWORKS
Summary

1 % &P'()(* +P)',&-.+ .................................................................................................. 2
2 % /!+01&!-/ .............................................................................................................. 2
# %+'33)(* +P)',&-.+ .................................................................................................... 2
#.1 % ('3,&-. +!( ................................................................................................... 4
#.1.1 % +'35P )P+ -!(*' ............................................................................................. 4
#.1.2 % &(6)*5-' ,)(/&,+/++0/+(7P !&5(3+....................................................... 8
#.1.# %+0'/59'/ +!(+ ........................................................................................... :
#.1.2 % +!( '--&-+ ................................................................................................. :
#.2 % !3);' /)-'3&-< ............................................................................................... 10
#.2.1 % +<(0-&()=' !3);' /)-'3&-< ,)30 +P)',&-.+ ............................................... 10
#.2.2 % !/>+ +<(0-&()=!3)&( 6-'?5'(< ................................................................... 10
#.2.# % +<(0-&()=' +P)',&-.+ ,)30 !3);' /)-'3&-< @ ............................................ 11
#.2.2 % !//)3)&(!9 !3);' /)-'3&-< +'33)(*+ ............................................................ 11
#.# % !/;!('/ A )(3'-(!3)&(!9 &P3)&(+ ...................................................................... 12
#.#.1 % P-&B< &(6)*5-!3)&( .................................................................................. 12
#.#.2 % 7&/)6<)(* +P)',&-.+ 9!(*5!*' !(/ 3)7'//!3' 6&-7!3 .................................... 12
#.2 % 7!(!*)(* +P)',&-.+> 5+'-+ ................................................................................ 1#
2 % !63'- 30' ('3,&-. +!( ........................................................................................... 1#
2C1C +'!-0)(* ('3,&-. -'+&5-'+ .............................................................................. 1#
2C2C -'!3)(* (', *-&5P+ .......................................................................................... 14
2C#C 7&/)6<)(* -'+&5-'+> !33-)153+. ........................................................................... 1$
)( !//)3)&(D ! /';)' !( 1'9&(* 3& +';'-!9 *-&5P+D E5+3 !// 30'7 9).' !1&;'. ................... 1$
2C2 % P5-0!+' 7!(!*'7'(3. ....................................................................................... 1$
2CF ;)+)3 !3);' /)-'3&-< P'&P9'. ............................................................................... 18
F % +P)',&-.>+ /!3! 1!+'............................................................................................... 20
F.1 % /!3! 1!+' '/)3)&( ............................................................................................... 20
F.2 % 7!)( 3!19'+ ....................................................................................................... 22
F.# % 7!.)(* -'P&-3+ ................................................................................................. 2#
F.#.1 -'P&-3+ !(/ ,)/*'3+. ..................................................................................... 2F
F.#.2 +0!-)(* -'P&-3+ ............................................................................................. 2$
4 % +!( '--&-+ ............................................................................................................ #0
1 3)7'&53 ,!)3)(* 6&- ,7) &(('3)&( .................................................................... #0
2 % -P +'-;'- )+ 5(!;!)9!19' ,)(/&,+ G800$041! ........................................................ #1
# % (& &P'( P&-3+ 6&- 30)+ /';)' ,'-' 6&5(/ 3& 1' -'+P&(/)(*. ...................................... #2
2 % &(6)*5-!3)&( 1!.5P -'?5)-'+ !( ++0 &- 3'9('3 !&5(3 ....................................... ##
$ % &(('3)(* +P)',&-.+> /!3! 1!+' 30!(.+ 3& &/1 ..................................................... #F
1 C )(3-&/53)&( ...................................................................................................... #F
2 C ,0!3 /& ,' (''/ ? ................................................................................................ #F
# C )(+3!99 !(/ &(6)*5-' &/1 6&- +?9)3' .................................................................. #F
2 C 5+)(* &/1 ,)30 'B'9 ......................................................................................... #8
F C &(95+)&( ...................................................................................................... 22
8 % 159. )7P&-3 ......................................................................................................... 2#


2
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2


1 1 1 1 Openi ng Spi cework Openi ng Spi cework Openi ng Spi cework Openi ng Spi cework

+ince +piceworks is installedD you may want to launch it.
7aybe you could Het this error :

'rror or notD there are two ways to launch +piceworks : local or remotly.

C 9ocallyD enter the followinH 5-9: I http://localhost/splash @
)f the machine on which +piceworks is installed has for 6?/( : J+-;C+P)',&-.+K L )f +piceworks is confiHured for usinH
the B port.
C -emotelyD enter the followinH 5-9 : I http://srv-spiceworks:X/splash @ D
&f courseD you can replace the 6?/( by the +piceworks serMer>s )p address. &nce +piceworks is launchedD its icon appears in
the notification area. 1y clickinH on itD you can access +piceworks> preference.

+etup here the famous B port you want +piceworks to use.

)n +tartup &ptionsD if you check the J+piceworks is runninH as a serMiceK optionD as ,indows serMiceD you can start/stop it from


#
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2


the command prompt by e"ecutinH the followinH command : Jnet start/stop +piceworksK. 3he serMice is set on automatic so it
will be launched at the same time as the &+. !s a serMiceD +piceworks won>t appear anymore in the notification area.
)f you are usinH +piceworks for the first timeD you will haMe to create an accountD only after you will be able to loHin as below :



2
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2


2 2 2 2 !a"#oar$ !a"#oar$ !a"#oar$ !a"#oar$
&nce you are connectedD by defaultD +piceworks will load the /ashboard paHeD which could chanHe.

!t the top of the paHeD you will find the main menus
C ommunity : )t HiMe you access to the +piceworks communityNhelpD shareD tutorialsO
C )nMentory : !llow you to confiHure +piceworks.
C 0elp/esk : 0elp module of +piceworks
C PurchasinH : 3o handle your purchase.

% % % % Se&& i ng Se&& i ng Se&& i ng Se&& i ng Spi cework Spi cework Spi cework Spi cework
3o setup +piceworksD )nMentoryP+ettinHs :





F
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2



,ellD as you can seeD there are many thinHs to setup. 9et>s check how to.










%' 1 %' 1 %' 1 %' 1 (e&work Scan (e&work Scan (e&work Scan (e&work Scan
3his is where you want to Ho when you want to specify what )Ps you want t


%' 1 %' 1 %' 1 %' 1' 1 ' 1 ' 1 ' 1 Se&up I P range Se&up I P range Se&up I P range Se&up I P range

3o add a new scan entryD simply click on I click here to add a





3his is where you want to Ho when you want to specify what )Ps you want to scan. 1elowD see what it look
click here to add a new scan entry @.
4
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2


o scan. 1elowD see what it looks like.




$
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2


) want to scan the followinH ranHe : 192.168.1.
because this is eQuiMalent to 192.168.1.1-2!
)t is the same for the followinH bytes. )f ) want to scan from
with 192.168.1-1".1-2!.
)f you haMe disjoint ranHesD the synta" will be -!(*'R1 +P!' -!(*'R2 or J-!(*'R1 -!(*'R2K without the JK of
course. '"ample : J192.168.1-1".1-2! 192.168.
)nstead of disjointinH ranHesD you can make it contiHuous then e"clude what you don>t want to scan. +
same rules as aboMe.
)f you check the JustomK +can +ettinHs then you
192.168.1.1 to 192.168.1.2!. ,ill i want to write each ip addresses
2!.
for the followinH bytes. )f ) want to scan from 192.168.1.1 S 192.168.1".2!# ) will fill the /eMice/-anHe field
disjoint ranHesD the synta" will be -!(*'R1 +P!' -!(*'R2 or J-!(*'R1 -!(*'R2K without the JK of
192.168.12-1!.1-2!K.
)nstead of disjointinH ranHesD you can make it contiHuous then e"clude what you don>t want to scan. +
)f you check the JustomK +can +ettinHs then you will be able to schedule the scan e"ecution.

,ill i want to write each ip addresses ? (o ) will not
) will fill the /eMice/-anHe field
disjoint ranHesD the synta" will be -!(*'R1 +P!' -!(*'R2 or J-!(*'R1 -!(*'R2K without the JK of
)nstead of disjointinH ranHesD you can make it contiHuous then e"clude what you don>t want to scan. +can e"clusions follow the



<ou can also order your scan entries by clickinH on the upper riHht button.

5ncheck a scan entry to disable it temporarily.
%' 1' 2 %' 1' 2 %' 1' 2 %' 1' 2 Con) i gure Con) i gure Con) i gure Con) i gure Wi n$ow/SS*/S(+P Wi n$ow/SS*/S(+P Wi n$ow/SS*/S(+P Wi n$ow/SS*/S(+P

0ow do +piceworks to pull up data from your network
,indows &+. )t is necessary to confiHure correspondinH accounts so you won>t Het scan errors. )f errors occurD you can check
the tutorial>s error section.
3here are different ways to connect remotely
protocol. !ccordinH to your policyD you will haMe to confiHure properly the correspondinH accounts.
C ,indows account allows you to fill the administ
C 3elnetD ++0D 033P accounts will be used for +(7P deMices.
C +(7P account will specify the community to use.
1y defaultD the public community is enabled. <ou can create a new one for
are confiHured to work with it.

&nce your accounts haMe been createdD if they need to be modifiedD you will find at the bottom of the scan
you can edit your scan entries and specify accounts they will need if this has not been done yet.

<ou can also order your scan entries by clickinH on the upper riHht button.
5ncheck a scan entry to disable it temporarily.
Wi n$ow/SS*/S(+P Wi n$ow/SS*/S(+P Wi n$ow/SS*/S(+P Wi n$ow/SS*/S(+P accoun& accoun& accoun& accoun&
from your network resources? 1y usinH +(7P protocol
,indows &+. )t is necessary to confiHure correspondinH accounts so you won>t Het scan errors. )f errors occurD you can check
remotely to network resources. 3his can be performed by usinH telnetD sshD httpT
protocol. !ccordinH to your policyD you will haMe to confiHure properly the correspondinH accounts.
you to fill the administrator account of the domain.
accounts will be used for +(7P deMices.
+(7P account will specify the community to use.
1y defaultD the public community is enabled. <ou can create a new one for the priMate communi
accounts haMe been createdD if they need to be modifiedD you will find at the bottom of the scan
you can edit your scan entries and specify accounts they will need if this has not been done yet.
8
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2


1y usinH +(7P protocol or ,7) for machines usinH
,indows &+. )t is necessary to confiHure correspondinH accounts so you won>t Het scan errors. )f errors occurD you can check
to network resources. 3his can be performed by usinH telnetD sshD httpT
protocol. !ccordinH to your policyD you will haMe to confiHure properly the correspondinH accounts.
priMate community if your network deMices
accounts haMe been createdD if they need to be modifiedD you will find at the bottom of the scan>s settinHs paHe. (ow



:
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2


%' 1' % %' 1' % %' 1' % %' 1' % Sc"e$u, e$ can Sc"e$u, e$ can Sc"e$u, e$ can Sc"e$u, e$ can

)nstead of creatinH for each scan entry a specific scheduled scanD you can setup a Hlobal scheduled scan for all entries.



%' 1' - %' 1' - %' 1' - %' 1' - Scan error Scan error Scan error Scan error

)f after your scan you Het errorsD refer to the tutorial errorsUsection.










%' 2 %' 2 %' 2 %' 2 .c& i /e $i rec&ory .c& i /e $i rec&ory .c& i /e $i rec&ory .c& i /e $i rec&ory

%' 2' 1 %' 2' 1 %' 2' 1 %' 2' 1 Sync"roni Sync"roni Sync"roni Sync"roni 0e .c&i /e !i rec&ory wi &" Spi cework 0e .c&i /e !i rec&ory wi &" Spi cework 0e .c&i /e !i rec&ory wi &" Spi cework 0e .c&i /e !i rec&ory wi &" Spi cework

+piceworks offers you to synchroniVe your !ctiMe
necessary to fill the administrator credentials of your !/ serMer.
%' 2' 2 %' 2' 2 %' 2' 2 %' 2' 2 .!1 ync"roni 0a& i on ) re2uency .!1 ync"roni 0a& i on ) re2uency .!1 ync"roni 0a& i on ) re2uency .!1 ync"roni 0a& i on ) re2uency

(ow you are able to synchroniVe your !/ with +piceworksD you can specify a freQuency to re
occurred.
3his beinH saidD once you checked I !/ scanninH
)n that caseD uncheckD wait about # minutes and check aHain. 3hat should solMe this problem. 1y the wayD you can use this
method to force !/ synchroniVation if you don>t want to wait #0 minutes.





0e .c&i /e !i rec&ory wi &" Spi cework 0e .c&i /e !i rec&ory wi &" Spi cework 0e .c&i /e !i rec&ory wi &" Spi cework 0e .c&i /e !i rec&ory wi &" Spi cework
+piceworks offers you to synchroniVe your !ctiMe /irectory. 3he result will be aMailable in settinHsPpeople.
necessary to fill the administrator credentials of your !/ serMer.
.!1 ync"roni 0a& i on ) re2uency .!1 ync"roni 0a& i on ) re2uency .!1 ync"roni 0a& i on ) re2uency .!1 ync"roni 0a& i on ) re2uency
(ow you are able to synchroniVe your !/ with +piceworksD you can specify a freQuency to reCsynchroniVe in case chanHes
!/ scanninH @D you may haMe the followinH error.
)n that caseD uncheckD wait about # minutes and check aHain. 3hat should solMe this problem. 1y the wayD you can use this
if you don>t want to wait #0 minutes.
10
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2


in settinHsPpeople. 6or thisD it is

synchroniVe in case chanHes haMe


)n that caseD uncheckD wait about # minutes and check aHain. 3hat should solMe this problem. 1y the wayD you can use this


11
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2


%' 2' % %' 2' % %' 2' % %' 2' % Sync"roni 0e Spi cework wi &" .c& i /e !i rec&ory Sync"roni 0e Spi cework wi &" .c& i /e !i rec&ory Sync"roni 0e Spi cework wi &" .c& i /e !i rec&ory Sync"roni 0e Spi cework wi &" .c& i /e !i rec&ory

3he aboMe operation can be reMersed thanks to this option. )f yo
allows +piceworks to oMerwrite !ctiMe /irectory

%' 2' - %' 2' - %' 2' - %' 2' - .$$i &i ona, .c&i /e .$$i &i ona, .c&i /e .$$i &i ona, .c&i /e .$$i &i ona, .c&i /e !i rec&ory !i rec&ory !i rec&ory !i rec&ory

,hen importinH !ctiMe /irectoryD you miHht want to import only some of your 5&. 0ere you can specify your corr
1ase /( of your choice.
7oreoMerD if an !/ user doesn>t haMe its email address filledD +piceworks will not import it. 3he option J5se principal name for
email if blank in !/K allows +piceworks to import










Sync"roni 0e Spi cework wi &" .c& i /e !i rec&ory Sync"roni 0e Spi cework wi &" .c& i /e !i rec&ory Sync"roni 0e Spi cework wi &" .c& i /e !i rec&ory Sync"roni 0e Spi cework wi &" .c& i /e !i rec&ory 3 3 3 3
3he aboMe operation can be reMersed thanks to this option. )f you did any chanHes in +piceworksP
+piceworks to oMerwrite !ctiMe /irectory>s data so you will not haMe to make the chanHes twice.
!i rec&ory !i rec&ory !i rec&ory !i rec&ory e&& i ng e&& i ng e&& i ng e&& i ng
,hen importinH !ctiMe /irectoryD you miHht want to import only some of your 5&. 0ere you can specify your corr
email address filledD +piceworks will not import it. 3he option J5se principal name for
email if blank in !/K allows +piceworks to import contact eMen if the !/ user does not haMe an email address filled.
u did any chanHes in +piceworksPsettinHsPpeopleD this option
data so you will not haMe to make the chanHes twice.

,hen importinH !ctiMe /irectoryD you miHht want to import only some of your 5&. 0ere you can specify your correspondinH
email address filledD +piceworks will not import it. 3he option J5se principal name for
an email address filled.


%' % %' % %' % %' % .$/ance$ 4 I n&erna& i ona, Op& i on .$/ance$ 4 I n&erna& i ona, Op& i on .$/ance$ 4 I n&erna& i ona, Op& i on .$/ance$ 4 I n&erna& i ona, Op& i on

%' %' 1 %' %' 1 %' %' 1 %' %' 1 Pro5y Con) i gura&i on Pro5y Con) i gura&i on Pro5y Con) i gura&i on Pro5y Con) i gura&i on

)n case your network is runninH throuHh a pro"yD you will haMe to fill the


%' %' 2 %' %' 2 %' %' 2 %' %' 2 +o$i ) yi ng Spi cework , anguage an$ +o$i ) yi ng Spi cework , anguage an$ +o$i ) yi ng Spi cework , anguage an$ +o$i ) yi ng Spi cework , anguage an$

)f you are french like meD you miHht want to chanHe hour and date format like ) did below. 3his is Mery intuitiMeD look at th
MariablesD W0 for hoursT <ou haMe an e"planation
+piceworks> interface is natiMely usinH the 'nHlish lanHuaHe howeMer you can chanHe it. )f your lanHuaHe is not in the listD Ho
check the aMailable 9anHuaHe Packs created by the community.






.$/ance$ 4 I n&erna& i ona, Op& i on .$/ance$ 4 I n&erna& i ona, Op& i on .$/ance$ 4 I n&erna& i ona, Op& i on .$/ance$ 4 I n&erna& i ona, Op& i on

a pro"yD you will haMe to fill the information below.
+o$i ) yi ng Spi cework , anguage an$ +o$i ) yi ng Spi cework , anguage an$ +o$i ) yi ng Spi cework , anguage an$ +o$i ) yi ng Spi cework , anguage an$ &i me/$a&e ) orma& &i me/$a&e ) orma& &i me/$a&e ) orma& &i me/$a&e ) orma&
)f you are french like meD you miHht want to chanHe hour and date format like ) did below. 3his is Mery intuitiMeD look at th
an e"planation for eMery of them by clickinH on the J/ate/3ime 6orma
interface is natiMely usinH the 'nHlish lanHuaHe howeMer you can chanHe it. )f your lanHuaHe is not in the listD Ho
check the aMailable 9anHuaHe Packs created by the community.
12
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2



)f you are french like meD you miHht want to chanHe hour and date format like ) did below. 3his is Mery intuitiMeD look at the
lickinH on the J/ate/3ime 6ormattinH ?K link.
interface is natiMely usinH the 'nHlish lanHuaHe howeMer you can chanHe it. )f your lanHuaHe is not in the listD Ho



1#
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2


%' - %' - %' - %' - +anagi ng Spi cework1 uer +anagi ng Spi cework1 uer +anagi ng Spi cework1 uer +anagi ng Spi cework1 uer

,hen you are first loHHinH into +piceworksD it creates your profile here. 7aybe you want to HiMe a +piceworks access to your
teammates. !dd their account here.

- - - - .) &er &"e ne& work can .) &er &"e ne& work can .) &er &"e ne& work can .) &er &"e ne& work can

- -- -6 66 6 1 11 16 66 6 Searc"i ng ne&work reource Searc"i ng ne&work reource Searc"i ng ne&work reource Searc"i ng ne&work reource

(ow the scan has been performedD you can pay a Misit to your network deMices in )nMentoryPdeMices.




+piceworks has default cateHories to sort deMices accordinH to the type they belonH to. &f courseD you can create custom
cateHories so you can sort them to your wishes by makinH adManced filters.
(ice trick if you are allerHic to the preMious display mode. <ou can switch

+earch the deMice you want to look at and then click on it.
+piceworks has default cateHories to sort deMices accordinH to the type they belonH to. &f courseD you can create custom
them to your wishes by makinH adManced filters.
(ice trick if you are allerHic to the preMious display mode. <ou can switch it like below.
+earch the deMice you want to look at and then click on it.
12
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2


+piceworks has default cateHories to sort deMices accordinH to the type they belonH to. &f courseD you can create custom




1F
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2


<ou haMe useful e"traCtools if you need to test




















tools if you need to test some thinHs.



14
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2


- -- -6 66 6 2 22 26 66 6 Crea&i ng new group Crea&i ng new group Crea&i ng new group Crea&i ng new group

<ou want to create a new Hroup ? 6or sure X 3hen click on the upper riHht Hear X


) am creatinH a Hroup named I 7on Hroupe @. ) want this Hroup to Hather all the deMices with a mac address beHinninH with
J00:K. &kayD this is damn useless but it is just an e"ample. <ou can make such more adManced filters.


1$
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2




- -- -6 66 6 % %% %6 66 6 +o$i ) yi ng reource1 +o$i ) yi ng reource1 +o$i ) yi ng reource1 +o$i ) yi ng reource1 a& &ri #u&e a& &ri #u&e a& &ri #u&e a& &ri #u&e' '' '

+ometimesD some deMices may contain corrupted information or maybe you just want to chanHe/add some. 9ikelyD you can edit
deMice>s information. )f the deMices Hot the write riHhtD then +piceworks will push it back to the deMices X 0ow nice.


)n additionD a deMice can belonH to seMeral HroupsD just add them like aboMe.
- -- -6 66 6 - - - - Purc"ae managemen& Purc"ae managemen& Purc"ae managemen& Purc"ae managemen& ' '' '

18
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2



<ou can attach to a deMice :
C a ticket
C ! purchase
C ! warranty

)f you need to create a ticket for a deMice for any reasonD for a better manaHementD you can attach it to the deMice.
3he purchase thinH allows you to fill a monthly cost for a period that finally comes to HiMe you the total cost. )maHine this has
been done for all your deMices. ! simple +?9 reQuest could tell you wonderful thinHs about your whole network.
3he warranty thinH allows you to remind when time has come for renewinH contracts as an e"ample.

- -- -6 66 6 7 7 7 7 8i i & .c& i /e 8i i & .c& i /e 8i i & .c& i /e 8i i & .c& i /e !i rec&ory !i rec&ory !i rec&ory !i rec&ory peop, e peop, e peop, e peop, e' '' '

3o Misit your people then Ho to )nMentoryPPeople.



1:
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2



3o access people propertiesD just click on it. 3o modify its attributesD it is as pretty e"actly as for the deMicesD proceed in the
same way. .eep in mind that if you did make chanHesD they will be pushed up from +piceworks to !/ if you check the riHht
option.
+omethinH interestinH is that you can associate deMices to an ad user. !monH themD one will be the primary and others
secondary>s. )t is just matter of choices.
6or e"ampleD ) am HoinH to associate a computer to an adRuser. &h noD ) haMe like F00 people in my !/. ) don>t want to Hrind
G.CJ. /on>t worryD we will see later how to make it more kindly.





20
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2






7 7 7 7 Spi cework1 $a&a #ae' Spi cework1 $a&a #ae' Spi cework1 $a&a #ae' Spi cework1 $a&a #ae'
7' 1 7' 1 7' 1 7' 1 !a&a #ae e$i & i on !a&a #ae e$i & i on !a&a #ae e$i & i on !a&a #ae e$i & i on

+piceworks uses a data base to stock and order data. 3his data base is compatible with +?9)3'#. ) will Huess you are not usinH )'
but 6irefo" or hrome. )n this caseD install the +?9)3'# module. 3henD you are able to open the database from your internet
browser.
&pen the +?9)3' module and browse your hard driMe into your +piceworks folder J../+piceworks/db/+piceworksRprod.db.K
<ou may haMe to chanHe the file e"tension to see it because it is .db and not .sQlite.
)f you want to e"ecute a +?9 reQuestD Ho to J'"ecute +?9K and fill your +?9 code. )f you want to browse the data base and see
what tables are containinHD Ho to Jbrowse and searchK. +elect a table on the left and haMe a look at it.


21
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2



6or e"ampleD ) want to see seMeral information of the adRusers table. 1elowD you haMe the +?9 reQuest code and the result.




22
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2


7' 2 7' 2 7' 2 7' 2 +ai n &a#, e +ai n &a#, e +ai n &a#, e +ai n &a#, e

)t depends on what you want to do but the main tables look like to be :
C !dRusersNidD TattributesTD userRidO
C 5sersNidD TattributesT O
C /eMicesNidD TattributesTD userRidO
3ables adRusers and deMices are linked by the users table. 3hat means it will be possible to relate attributes from adRusers and
deMices in order to Het e"tra information by joininH them.
3he deMices table obMiously stores seMeral information about the deMices. 3he users table basically contains all the users defined
in +piceworks Nadmin accountD manual creation of peopleTO. 3he adRusers table stores all the data that are filled in your !/.
!ctuallyD this table is just an imaHe of what you haMe in your !/.
,hen you check the J!/ scanninHK optionD firstly the adRusers is filled and then +piceworks copy chosen information into its
own users table JusersK. )f you do some manual editions to chanHe informationD these information will only be modified in the
users table. &n the other handD if you check J+ync chanHes with !/KD this time what you did chanHe in the users table will
chanHe the adRusers>.
&f courseD there are a lot more of tables. <ou will haMe to browse them if you need specific information to Het the table>s name.





















2#
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2


7' % 7' % 7' % 7' % +aki ng repor& +aki ng repor& +aki ng repor& +aki ng repor&
3here is another way to e"ecute +?9 reQuest. +piceworks includes a report module. <ou can find it in )nMentoryP-eports.

1y clickinH on I (ew -eport @D you will be able to create a custom +?9 reQuest. <ou can saMe it to e"ecute it later.


*iMe a name and a description to your report. <ou can make it public. 3hat means users defined to loH into +piceworks will be
able to see your own reports. )f you want to make it public to the communityD you will haMe to share it. 1y the wayD the display
is customiVable but what you see on your dashboard only concerns your profile.
heck the J1uild this reports usinH +?9K to create your report as a +?9 reQuest. !t the endD click on J+aMe and runK.

22
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2




)f you Ho back to inMentoryP-eportsD you will see your new report to appear. 1y clickinH on the arrowD more options will be
offered. -unD editD shareD e"port or delete.


2F
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2



7' %' 1 Repor& an$ Wi $ge&' 7' %' 1 Repor& an$ Wi $ge&' 7' %' 1 Repor& an$ Wi $ge&' 7' %' 1 Repor& an$ Wi $ge&'

<ou can display the results from your +?9 reQuest as a Hraph : pie or bar. ,hen you are creatinH your +?9 reportD check J7ake
this report aMailable as a widHetK.


24
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2


)f you run aHain your reportsD you>ll see the Hraph by now X 0oweMerD to display +?9 results as a widHetD you will haMe to inMert
line and column in order to HiMe them a leHend. 6or e"ampleD makinH a sum on a row will need to do this.

5sual +?9 reQuest could be for e"ample:

S$L$%T column1 !s Uolumn 1>D column2 !s Uolumn 2>
&RO' 3!19'
()$R$ column1 = conditionL

3he result will be display like this.

olumn1 olumn2
;alue 1 ;alue 2

3o Het this workinH as a widHetD you will haMe to write your reQuest so the result be displayed like this :

X *+&,X-
olumn1 ;alue 1
olumn2 ;alue 2

3he eQuiMalent reQuest for this can be like this :
+'9'3 Uolumn 1>D column1 !s U<=6NBO>
6-&7 3!19'
,0'-' column1 = condition T

5()&(

+'9'3 Uolumn 2>D column2
6-&7 3!19'
,0'-' column1 = condition T
3his wayD the +?9 reQuest will be aMailable as a widHet. <ou haMe to notice that that you can choose the name U<=6NBO>
howeMer the UB> name will be the set at Uolumn 1> by default and ) don>t know how to fi" this but it doesn>t really matter.

5sinH this reQuest :
S$L$%T Y3&3!9 +)=' N31OYD roundNN+57NsiVeOO/N1022Z1022Z1022Z1022.0OD2O !s Y+)='R31Y
&RO' disks
()$R$ description like YW9ocal /iskWY and name not like YWsystWY and name not like YWrecoMeryWYL

U.IO.

S$L$%T Y5+'/ +P!' N31OYD roundNN+57NsiVeOC+57NfreeRspaceOO/N1022Z1022Z1022Z1022.0OD2O
6-&7 disks
,0'-' description like YW9ocal /iskWY and name not like YWsystWY and name not like YWrecoMeryWYL

U.IO.

S$L$%T Y6-'' +P!' N31OYD roundN+57NfreeRspaceO/N1022Z1022Z1022Z1022.0OD2O
&RO' disks
()$R$ description like YW9ocal /iskWY and name not like YWsystWY and name not like YWrecoMeryWYL


2$
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2



OR/$R 0* +)='R31 /$S%

6rom what ) saidD the +?9 result will be displayed like this :
3&3!9 +)=' +)='R31
3&3!9 +)=' ;!95' 1
5+'/ +P!' ;!95' 2
6-'' +P!' ;!95' #

!fter runninH the reportD this is what you Het :

7' %' 2 S"ari ng repor& 7' %' 2 S"ari ng repor& 7' %' 2 S"ari ng repor& 7' %' 2 S"ari ng repor&

<ou can share your reports.



28
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2


!ssuminH you haMe modified your +?9 reQuest for B reason and you want to update itD the procedure is the same as sharinH.
lick aHain on share for the reports you want to update then +piceworks will ask you if you wish to update it X. )f you want to
saMe the old MersionD rename your old report as a new oneD create a new report with the same name like the preMious one then
share so +piceworks will ask you if want to update.

&nce sharedD +piceworks will lead you to this paHe.






2:
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2


)f you want to take a look to your sharesD then Ho to U7y Profile>.

lick on U+hared )tems>.

3hen you will haMe an oMerMiew of your shares.



#0
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2


9 99 9 Scan error Scan error Scan error Scan error

1 :i meou& Wai &i ng ) or W+I Connec&i on :i meou& Wai &i ng ) or W+I Connec&i on :i meou& Wai &i ng ) or W+I Connec&i on :i meou& Wai &i ng ) or W+I Connec&i on


,7) uses /&7 protocol to connect itself to the machines. )f is not actiMatedD ,7) will not work and +piceworks will pull up
this kind of errors. 7oreoMerD the machine hostinH +piceworks must be allowed by the remote machines to use this protocol.


3o check if the ,7) protocol is started on a machine
C &pen a command prompt
C ,rite the followinH command line :

)f the result is Uthe serMice is already started>D then the problem does not come from here. 'lseD you will haMe to deploy the
followinH *P& so the ,7) serMice will automatically launch itself at ,indows startup.

%ompu1er %o23i4 5 6o7icies 5 (i28ows Se11i24s 5 Securi1y Se11i24s 5 (i28ows &irewa77 wi19 A8va2ce8
Securi1y 5 (i28ows &irewa77 wi19 A8va2ce8 Securi1y 5 I2:ou28 Ru7es 2o8e.

'dit this *P& and choose I allow connection @.

(ow the ,7) serMice is startedD you haMe to allow the traffic between remote machines and the +piceworks serMer. !HainD you
haMe to edit the followinH *P&s :
- /%O' ; 'ac9i2e access res1ric1io2s i2 securi1y<
- /%O' ; 'ac9i2e 7au2c9 res1ric1io2s i2 securi1y<
<ou will find the *P& in :
%ompu1er %o23i4ura1io2=(i28ows Se11i24s=Securi1y Se11i24s=Loca7 6o7icies=Securi1y Op1io2s


#1
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2


2 2 2 2 RPC Ser/er i una/ai , a#, e Wi n$ow ;<00709=. RPC Ser/er i una/ai , a#, e Wi n$ow ;<00709=. RPC Ser/er i una/ai , a#, e Wi n$ow ;<00709=. RPC Ser/er i una/ai , a#, e Wi n$ow ;<00709=.

3here are two ways to proceed :

1. ommand prompt

1.1. 6or ,indows BP
1.1.1. )f the machine is in the same subnet or network as the +piceworks serMer.
c:[P netsh firewall set serMice remoteadmin enable subnet
1.1.2. )f the machine is in another subnet or networt as the +piceworks serMer.
c:[P netsh firewall set serMice remoteadmin enable
1.2. 6or ,indows ;ista/$
c:[P netsh adMfirewall firewall set rule Hroup=\windows manaHement instrumentation NwmiO\ new enable=yes
firewall set rule Hroup=\remote administration\ new enable=yes

2. 5sinH *P&s

<ou haMe to allow these *P&s.
- (i28ows &irewa77; A77ow remo1e a8mi2is1ra1io2 e>cep1io2
- (i28ows &irewa77; A77ow I%'6 e>cep1io2s

<ou will find them in :

%ompu1er %o23i4ura1io2?A8mi2is1ra1ive Temp7a1es?.e1work?.e1work %o22ec1io2s?(i28ows
&irewa77?/omai2 6ro3i7e















#2
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2


% % % % (o open por& ) or &"i $e/i ce were ) oun$ &o #e repon$i ng' (o open por& ) or &"i $e/i ce were ) oun$ &o #e repon$i ng' (o open por& ) or &"i $e/i ce were ) oun$ &o #e repon$i ng' (o open por& ) or &"i $e/i ce were ) oun$ &o #e repon$i ng'

3here are seMeral reasons for this error
- )ncorrect permissions for ,7)
- )ncorrect /(+ informations
- ,indows> 6irewall is blockinH ports
- !ntiMirus is blockinH ports
1 % Permissions incorrectes pour ,7)
heck the number one point.
2 % )nformation /(+ incorrectes

)f this error was not due to the ,7) thinHD it is probably because of the /(+.
6rom the machine hostinH +piceworks
- &pen a command prompt
- '"ecute the followinH command line
nslookup ]I6 A//R$SS^
)f this worksD it must return the 0&+3(!7'
- (owD we haMe to check the reMerse :
nslookup ]'A%)I.$@ )OST.A'$^
)f this worksD it must return the )P !//-'++.
)f notD look out for /(+ issues.



##
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2


- - - - Con) i gura& i on =ackup re2ui re an SS* or :e, ne& .ccoun& Con) i gura& i on =ackup re2ui re an SS* or :e, ne& .ccoun& Con) i gura& i on =ackup re2ui re an SS* or :e, ne& .ccoun& Con) i gura& i on =ackup re2ui re an SS* or :e, ne& .ccoun&

3o solMe this issueD you haMe to create the appropriates ++0 or 3elnet accounts.







#2
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2








#F
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2


7 7 7 7 Connec& i ng Spi cework1 $a&a #ae &"ank &o O!=C Connec& i ng Spi cework1 $a&a #ae &"ank &o O!=C Connec& i ng Spi cework1 $a&a #ae &"ank &o O!=C Connec& i ng Spi cework1 $a&a #ae &"ank &o O!=C

1 1 1 1 6 66 6 I n& ro$uc&i on I n& ro$uc&i on I n& ro$uc&i on I n& ro$uc&i on

3he tutorial purpose is to find out how to connect the +piceworks> data base to e"cel
0ey manD why would we do that ? <ou are aware that thanks to the report section in +piceworksD you can build custom +?9
reQuests and/or download some of them from the community report sharinH paHe. )f you want to e"port reQuest resultsD you
haMe a +piceworks functionality to do this. 0oweMerD each time you want to refresh themD you haMe to e"port the reQuest aHain
into '"cel.
&/1 allows you to e"ecute and import directly +?9 reQuests on the +piceworks data base in '"cel. 5seful ?
2 2 2 2 6 66 6 W"a& $o we nee$ > W"a& $o we nee$ > W"a& $o we nee$ > W"a& $o we nee$ >

1. +piceworks N(o way ?O
2. '"cel
#. &/1 for +?9)3' Nhttp://www.chCwerner.de/sQliteodbc/O
2. +ome +?9 reQuests
% % % % 6 66 6 I n&a, , an$ con) i gure O!=C ) or S?@I :E I n&a, , an$ con) i gure O!=C ) or S?@I :E I n&a, , an$ con) i gure O!=C ) or S?@I :E I n&a, , an$ con) i gure O!=C ) or S?@I :E

/ownload &/1 from : http://www.chCwerner.de/sQliteodbc/
3he direct link for the actual last release is http://www.chCwerner.de/sQliteodbc/sQliteodbc.e"e.
&nce installedD you may want to Ho now to the control panelPadministratiMe toolsP&/1 and open what we are workinH for.


<ou also can open &/1 in one shot with the run command Jodbcad#2K if you are laVy :/.


!s you sawD my *5) is in 6renchD )>ll try to HiMe you the best translation but ) won>t bet my life this will be Hood ones.
,hat we need to do is to create a system data source. <ou can also create a user data source but this will be effectiMe only on the

#4
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2


user computer whereas the system source system will share with other allowed users the &/1 and reQuests. &nce you haMe
open &/1D look for this :


7y &/1 for +piceworks is already created but ) will show you with a new one. (e"t Jadd..K and chose +?9ite# &/1
/riMer

6ill the ne"t windows as below :


#$
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2



,hen lookinH for the spiceworks> data baseD click browse and Ho to ..[spiceworks[db[spiceworksRprod.db. 7aybeD you will
haMe to chanHe the file e"tention to make the .db file to appear.


6inallyD this is what you Het when all of this has been done :

#8
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2




- - - - 6 66 6 Ai ng O!=C wi &" E5ce, Ai ng O!=C wi &" E5ce, Ai ng O!=C wi &" E5ce, Ai ng O!=C wi &" E5ce,

) am HoinH to show you how to create a sheet where you will add the +?9 reQuests you want to e"ecute. ,hen this will be
doneD just saMe the sheet. &pen it laterD refresh to Het the results =O.

&nce '"cel is openedD locate the J/!3!K button then click on J6-&7 !(&30'- +&5-'+K

lick on J7)-&+&63 ?5'-<K.



#:
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2


)f thinHs did Ho straiHhtD you must see appearinH the J+piceworks M2K data base we created earlier. <ou can see J+piceworks M2K )
created with you as well as J+piceworksKD the one ) actually use. lick J&.K.

7icrosoft ?uery will openD then choose fileP'"ecute +?9.

opy/past the +?9 ?uery you want to e"ecute. <ou can use the Queries ) shared on my profile for the community if you want
to.



20
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2


(ow you can star at the resultD pretty cool ) think. 1ut it is not oMer yet.

) Huess nobody wish to copy/paste each time the reQuest to Het the resultD so ) suHHest you to saMe it. 6ilePsaMe asT





21
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2



lose 7icrosoft ?uery or add another Queries if you want to. 3hen Ho back to '"celPdataP'"istinH onnections. )f thinHs did
Ho straiHhtD you must see Queries you saMed earlier. 7<R-'?5'+3 is selectableD so select it.


22
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2


,hen selectedD '"cel will ask you as below where you want to import dataD so obMiously you may want to use the first cell of
the sheet. 3hen click &..

0ere is the result :

7 7 7 7 6 66 6 Conc, ui on Conc, ui on Conc, ui on Conc, ui on

!s a conclusionD just saMe your sheet or open a new sheet in your workbook to import more Queries. 6rom now onD just open
your sheetD click on refresh and do what you haMe to with data. 6or 7acro7enD ;1! usersT ) think you miHht find this a bit
usefull.



2#
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2


< < < < =A@K I +POR: =A@K I +POR: =A@K I +POR: =A@K I +POR:

3o import none scannable data into +piceworksD it is possible to use the bulk import that allows you to import deMices from a
csM file.
+tep 1 : 7ake backup of the data base by HoinH there : +ettinHs CP 1ackup onfiHuration CP 1ack up (ow.
+tep 2 : *o to ..[ +piceworks[pkH[Hems.
+tep # : 9ook for the the directory with the latest Mersion like JspiceworksC".".""""K with "."."""" the Mersion of +piceworks.
+tep 2 : opy ..[ +piceworks[pkH[Hems[ spiceworksC".".""""[bulkRimport.rb to :[ProHram 6iles[+piceworks[bin
+tep F : &pen a cmd prompt and naMiHuate to ..[+piceworks[bin.
'"ecute this command line to be able to use the bulkRimport.rb
ruby bulkRimport.rb Ch


!ssuminH you haMe a csM fileD you are ready to perform a bulk import. +tillD in the cmd promptD you will haMe to call
JbulkRimport.rbJ with the followinH options.
Ce email id_domain.com
Cp password myRpwd
Cs serMer +piceCsrM.domain.com
CP +piceworks port B
C; ;erbose 7ore details while importinH

3o import file.csMD the command line to e"ecute is :
)f you are doinH this from a remote computer
-uby 1ulkRimport.rb %e id_domain.com %p myRpwd %s spiceCsrM.domain.com %P B %; file.csM

&- )f your are doinH this from the +piceworks serMer
-uby 1ulkRimport.rb %e id_domain.com %p myRpwd%; file.csM

0ow to create your csM file ?
6irstD it must use the UD> separator and not UL>. 3he first line of the csM must be the names of the rows of the deMices table in the
+piceworks database. 0oweMer you can choose what information you want to import. !t leastD you must specify the name of the
deMice to import. )t is the minimal. <ou shall know that if you haMe deMices with eQual namesD then you must specify the at least
the serial number of the deMices. 'lseD the bulk import will failed because +piceworks HiMes for serial number the name of the
deMice if none specified. 3husD 2 deMices can not haMe the same serial number if the name is the same. 7ake senses.
(ame
item1
item1
item2
)t will fail.
(ameD serialRnumber
item1D+(1
item1D+(2
item2D+(1
)t will work.

22
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2


3here it isD the row names of the deMices table you want to import into the +piceworks database.

/';)'+ 3!19'
id
name
type
description
server_name
domain
manufacturer
model
os_serial_number
windows_product_id
serial_number
ip_address
mac_address
operating_system
version
windows_user
primary_owner_name
memory
management_oid
last_boot_up_time
service_pack_major_version
service_pack_minor_version
number_of_licensed_users
number_of_processors
processor_type
created_on
kernel
page_count
install_date
device_type
current_user
bios_version
location
online_at
offline_at
asset_tag
manually_added
bios_date
c_purchase_price
c_purchase_date
b_name
b_device_type
b_asset_tag
b_manufacturer
b_model


2F
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2


b_primary_owner_name
b_serial_number
warning_alert_count
error_alert_count
open_ticket_count
auto_tag
user_tag
exclude_tag
last_scan_time
spice_version
vpro_level
last_backup_time
user_id
user_primary
swid
product_categories
domain_role
b_description
site_id
remote_agent_id

) want to pick some of the aboMe row name for the followinH csM file. +o the csM header will look like this :

(ameDdeMiceRtypeDmanufacturerDmodelDmacRaddressDserialRnumberDipRaddress

+ome fields can be blankD but as ) saidD name can>t be blank and serialRnumber can be blank but should not be to aMoid errors.
0ere are some e"amples of bulk import :


24
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2


) start a bulk import in the case i>m doinH it froms the spiceworks serMer.



(ow ) start a second bulk import like if ) was doinH it remotely :



2$
S
P
I
C
E
W
O
R
K
S

|

2
0
/
0
7
/
2
0
1
2



0ere we areD data haMe been uploaded.

S-ar putea să vă placă și