API or command for getting my UNV and their OEMs

Jan 1, 2024
779
363
USA
So I have been working trying to get a list of cameras and the passwords they are using setup for my family for when I am no longer here.. So I have had good script made for my Dahua and Amcrest DVR/NVRs and Ip cameras. I just setup a script that I am able to get my Hikvision OEMs and still working out that to work better then how I have it now.. Screen shot is from what I just ran and the output for the OEMs.. Now would like to have a script that I can do the same for the Uniview line. In this would like the format to be what I have setup here at least, In my Amcrest/Dahua line I have it setup to even show CPU and I can click the top list of the ouput file that does go to HTML and able to filter by IP, CPU, password type and it will change the list as such. Like if I pick IP it will list all devices by its IP high or low, and so on.. Anyway might even setup 1 script that will let me pick what format I want to search and then output to the list like it does now for Amcrest/Dahua..

Anyone know the API or what ever I would need to run for Uniview to get at least the camera model, Mac address and I can get the rest setup in the script..

Picture below is from the Hikvision output just ran, Not all the camera just the ones I let it collect and Ctrl C to stop scan..
 

Attachments

  • Screenshot from 2025-03-15 23-01-54.png
    Screenshot from 2025-03-15 23-01-54.png
    172.2 KB · Views: 0
You can try this, but I am not sure what you mean by password type. This camera is reporting Vigilant's firmware, but it's actually an OEM Uniview, maybe with some LPR optimization in the firmware (I can't tell, I don't have a Uniview to compare to).

curl --digest -u USERNAME:PASSWORD -X GET -H 'Content-Type: application/json'
{
"Response": {
"ResponseURL": "/LAPI/V1.0/System/DeviceBasicInfo",
"CreatedID": -1,
"ResponseCode": 0,
"SubResponseCode": 0,
"ResponseString": "Succeed",
"StatusCode": 0,
"StatusString": "Succeed",
"Data": {
"Manufacturer": "VigilantSolutionsLLC",
"DeviceModel": "VSR-60-02MP3",
"DeviceConfig": "",
"SerialNumber": "210235T...............",
"MAC": "e4f..........",
"FirmwareVersion": "IPC_HCMN2103-B0023P11D1809",
"HardewareID": "B",
"PCBVersion": "B",
"UbootVersion": "V3.7",
"CameraVersion": "",
"Address": "192.168.1.106",
"Netmask": "255.255.255.0",
"Gateway": "192.168.1.1"
}
}
}
 
Thank you, I will give it a try, I am not looking for passwords, I have in safe and will be tied to 1 of 4 and in my script it displays what one that camera is tied to. So you know how we have to use password to run commands, so when script says it found ip camera on in my case 10.0.0.133 using password 1 they know they can access using that password from safe.. easier then having to go reset all the devices to factory. Just trying to think ahead..
 
Awesome it kind of works. I mean yes it did display the 2 cameras that were in the same Vlan but when I tried to run it on my Alibi NVR it failed lol. So I will have to find what will be able to be passed to that Only 2 fit the screenshot so I will want to make a script that removes the unwanted items and retains the info for a listing. .But yes that worked thank you.. Also in mine I did my Uniview camera as well.. You don't happen to have a link to where I can get other commands that I can look over. The yellow cuts are me just removing some info about the cameras I don't want public for the trolls out there lol.. Then because someone said they were able to undo my cuts I made another screenshot after the fact this way if they really can they can't when it is another screenshot lol..

Again Thank you for taking the time to help
 

Attachments

  • Screenshot from 2025-03-16 06-26-24.png
    Screenshot from 2025-03-16 06-26-24.png
    147 KB · Views: 0
Still have to refine my script lol Want it to run like my Amcrest/Dahua one not the way I have it on my HikvisionOEM but that is how I have it setup right now.. Also changed 1 IP so it was little closer in the scan. Right now my other Ailibi cameras are connected to a VLan that this computer don't have access to right now and need to get some sleep lol..
 

Attachments

  • Screenshot from 2025-03-16 07-24-07.png
    Screenshot from 2025-03-16 07-24-07.png
    27.5 KB · Views: 0
Some Sleep what is that LOL I don't know why my output for Amcrest/Dahua works so well if I don't try to put the Hikvision and uniview into it lol.. When I try it breaks everything from listing out lol.. Even setup to pick between the 3 methods Running with threading just using the amcrest/dahua info it works so well.. Once I make changes to try and add the other 2 it is much slower and feels like I am taking 10 or 20 steps back lol, Won't show the whole list because it is longer then a screen shot lol
 

Attachments

  • Screenshot from 2025-03-16 08-10-52.png
    Screenshot from 2025-03-16 08-10-52.png
    404.2 KB · Views: 0