View Issue Details

IDProjectCategoryView StatusLast Update
1085RackTablesdefaultpublic2013-12-02 12:44
Reporterwaltari2001 Assigned Toinfrastation  
PrioritynormalSeverityminorReproducibilityN/A
Status closedResolutionno change required 
PlatformLinuxOSCentosOS Version6.3
Product Version0.20.5 
Summary1085: Fetch objectId
DescriptionHi,

What's the easiest way to fetch an objectId based on the value of the common name? I've tried this:

while(!feof(STDIN)){
        $data = rtrim(fgets(STDIN),"\n");

        try
        {
                $filter = '{$cn_' . $data . '}';
                $obj = scanRealmByText ('object', $filter);
        }
}

$obj looks like an array which index in the objId I'm looking for in the first place.


Thanks!

Sade
TagsNo tags attached.

Activities

infrastation

infrastation

2013-11-27 15:45

administrator   ~0001991

Does the following address your concern?
https://github.com/RackTables/racktables-contribs/blob/master/oneshot.php
infrastation

infrastation

2013-12-02 12:44

administrator   ~0001999

Please reopen if you need further support.

Issue History

Date Modified Username Field Change
2013-11-22 21:56 waltari2001 New Issue
2013-11-27 15:45 infrastation Note Added: 0001991
2013-11-27 15:45 infrastation Assigned To => infrastation
2013-11-27 15:45 infrastation Status new => assigned
2013-11-30 08:35 infrastation Status assigned => feedback
2013-12-02 12:44 infrastation Note Added: 0001999
2013-12-02 12:44 infrastation Status feedback => closed
2013-12-02 12:44 infrastation Resolution open => no change required