Advertisement
blackbinary

Untitled

Jan 26th, 2018
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.85 KB | None | 0 0
  1. #Set Location(66) Admin PasswordID and New Agent Deployment TemplateID
  2. UPDATE locations SET PasswordID=92,TemplateID=36 WHERE LocationID=66;
  3. #Get local subnet information for probe computer (1183)
  4. SELECT A.LocalAddress, B.ProbeID, B.Usernames, B.Subnets FROM computers A LEFT JOIN probeconfig B ON A.ComputerID = B.ProbeID WHERE ComputerID = 1183;
  5. #Setup default probe scanning for local network. Set SNMP strings, etc.
  6. Insert Into ProbeConfig (ProbeID,Usernames,CommunityStrings,IpPorts,ScanFrequency,Subnets,CollectionOn,LabtechPush) Values(1183,'92,','public,private,admin','80,21,23','1440','10.4.2.1,253|','0','0');
  7. #Assigns Computer 1183 to be the probe for locationid 66
  8. Update Locations Set ProbeID=1183 Where LocationID=66;
  9. #Assigns any network devices in location 66 to Probe 1183
  10. Update networkdevices Set ComputerID=1183 Where LocationID=66;```
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement