Community
Command Central
MVP Program
Monthly Mission
Blogs
Groups
Events
Media Vault
Products
Observability
Network Management
Application Management
IT Security
IT Service Management
System Management
Database Management
Content Exchange
SolarWinds Platform
Server & Application Monitor
Database Performance Analyzer
Server Configuration Monitor
Network Performance Monitor
Network Configuration Manager
SQL Sentry
Web Help Desk
Free Tools & Trials
Store
Home
Products
The SolarWinds Platform
SolarWinds SDK
Automation process in solarwinds using API HTML response
rajasekar
Hi guys,
Am getting a API response as HTML formate in that am able see the data in outerHTML, outertext after invoke-webrequest and using the parsehtml in powershell. That data contain nodename list with 4 other column attached and unable to format or split it.
How to formate and collect that nodename in list anyeasy way? After that using that list need to unmanage that each node in solarwings?? Please help me guys.
Find more posts tagged with
Scripts
Automation
PowerShell
API
Accepted answers
All comments
mrxinu
Can you post the script you're using?
rajasekar
Am not able to fetch the data for HTML response.
Required data is present in one portion of the HTML output.
.parsehtml.outertext if I pass in that portion it present. After that I can't do anything.
mrxinu
Please post the actual script that you're using.
rajasekar
$a=invoke-webrequest -uri "xxx" -contentType "application/json" -usedefaultcredentials
$b=($a.parsedHTML.outertext).trim()
$c=($b.all.getelementsbytagname("tr")
Then am getting some raw values with 4 column mixed like below
ID. Key. Type. Status
Xxy1234-5678-1234-5678Vmwareup
Abc9876-5432-9876-5432UnixDown
Up to this I tried
In this I need to take
Xxy
And
After this need to make solarwinds nodes with the above caption unmange.
Quick Links
All Categories
Recent Posts
Activity
Unanswered
Groups
Help
Best Of