To continue the default behavior of dropping unencrypted TACACS+ authentication requests, leave the value of the TacacsAllowUnencryptedCommunication parameter set to Disable. The default value for this parameter is false ( Disable). When this parameter is set to false, the TACACS+ module will drop TACACS+ requests from network access devices (NADs) that do not have a shared secret or do not have an unencrypted flag set in the TACACS+ header. I know of the "unofficial" module, I tried it, but I cannot get it to work.A new REST API parameter, TacacsAllowUnencryptedCommunication, is added for TACACS+ authentications at Guest > Administration > API Services > API Explorer > GlobalServerConfiguration > ClusterWideParameter. So, since my scripts are powershell, my question is: how can I query Lansweeper by powershell? I'm told "look at the IP locations in lanswepeer". Where I can get the list of the alive sites? So I need to compare the list of the licenses and the list of the alive sites. I need to check if we have licenses still assigned to no longer existing sites. Let's say I want to know how many IP Locations with a name that starts with "XYZ" I have, and then doing something elsewhere basing on the result.įor example I have a list of licenses assigned to each IP Location. However, what I need is to query lansweeper programmatically, hopefully integrating with a powershell. In the report's asset list you can deploy the package to the assets You could use "deploy package" in Lansweeper web console: create a deploy package with the configuration you need and then a report filtering the right assets I don't know if I understood your problem I need to to automate some tasks basing on the Lansweeper assets.Īt its basics, I need to query and filter lansweeper assets and perform some tasks on each filtered asset. TT $SQL |import-database -database $db_x -tablename LSU #Sends the results of the query to the sqllite db using import-db - creates LSU table $hld = get-sql -MsSQLserver -connection "Server= Integrated Security=true Initial Catalog=lansweeperdb ApplicationIntent=ReadOnly" -Session TT #queries the lansweeper db defined in the connection string session stored in "TT" $db_x = get-database #creates an in-memory db using ReallySimpleDatabase (see docs for using an on-disk db) (tblAssets.Uptime Is Not Null And tblAssets.Domain = 'OTHERDOMAIN' And Where (tblAssets.Lastseen > GetDate() - 30 And tblAssets.Domain = 'OURDOMAIN'Īnd tblAssets.Lasttried > GetDate() - 45) Or Left Join tblMacOSInfo On tblAssets.AssetID = tblMacOSInfo.AssetID Left Join tblLinuxSystem On tblAssets.AssetID = tblLinuxSystem.AssetID Inner Join tblState On tblState.State = tblAssetCustom.State Inner Join tsysIPLocations On tsysIPLocations.LocationID = tblAssets.LocationID Inner Join tsysAssetTypes On tsysAssetTypes.AssetType = tblAssets.Assettype Inner Join tblAssetCustom On tblAssets.AssetID = tblAssetCustom.AssetID Left Join tsysOS On tsysOS.OScode = tblAssets.OScode #Grabs all assets in lansweeper with usernames definedĬonvert(nvarchar(10),Ceiling(Floor(Convert(integer,tblAssets.Uptime) / 3600 /Ĭonvert(nvarchar(10),Ceiling(Floor(Convert(integer,tblAssets.Uptime) / 3600 %Ĭonvert(nvarchar(10),Ceiling(Floor(Convert(integer,tblAssets.Uptime) % 3600 /Ħ0))) + ' minutes' As UptimeSinceLastReboot,Ĭoalesce(tsysOS.OSname, tblLinuxSystem.OSRelease, tblMacOSInfo.SystemVersion) You could easily change the way it is used. That $var is a ReallySimpleDatabase in-memory db. The way I use this is to call the function and assign the results to a $var. The get-sql module allows me make queries and the ReallySimpleDatabase allow me to move the results into an in-memory database for further queries. I use a couple components to make this work. I've been able to query lansweeper from powershell and have integrated it into several scripts.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |